# Python_Uiautomator_Auto/pages/wifi_page.py
from Python_Uiautomator_Auto.utils.common_actions import verify_text_exists


class WiFiPage:
    def __init__(self, d):
        self.d = d

    def toggle_wifi(self):
        self.d(resourceId="android:id/switch_widget").click()

    def is_wifi_enabled(self):
        return self.d(resourceId="android:id/switch_widget").info["checked"]
